.TH grid2clm 1  "October 9, 2008" "version 1.0.002" "USER COMMANDS"
.SH NAME
grid2clm \- convert grid data file to clm data files for LPJmL
.SH SYNOPSIS
.B grid2clm
[\-h] [\-swap] [\-scale s] [\-cellsize c]
.I gridfile clmfile
.SH DESCRIPTION
Program converts raw binary data file consisting of 16bit integer values in a file format suitable for LPJmL. 
.SH OPTIONS
.TP
\-h
display a short help text
.TP
\-swap
change byte order in grid file
.TP
\-scale s
set scale factor, default is 0.01
.TP
\-cellsize c
set cell size, default is 0.5
.TP
.I gridfile    
filename of binary grid data file
.TP
.I clmfile     
filename of clm data file written
.SH EXAMPLES
.TP
Create clm data file from grid dataset changing byte order:
.B grid2clm
\-swap grid.bin grid.clm
.PP
.SH EXIT STATUS
.B grid2clm
returns a zero exit status if the clm file is created.
Non zero is returned in case of failure.

.SH AUTHORS

For authors and contributors see AUTHORS file

.SH COPYRIGHT

(C) Potsdam Institute for Climate Impact Research (PIK), see COPYRIGHT file

.SH SEE ALSO
lpjml(1), txt2clm(1), cru2clm(1), clm(5)
